import 'osc_blog.dart';

class OscUserBlogListEntity {
	List<OscBlog> projectList;
	int count;//博客总数

	OscUserBlogListEntity({this.projectList, this.count});

	OscUserBlogListEntity.fromJson(Map<String, dynamic> json) {
		if (json['projectlist'] != null) {
			projectList = new List<OscBlog>();(json['projectlist'] as List).forEach((v) { projectList.add(new OscBlog.fromJson(v)); });
		}
		count = json['count'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		if (this.projectList != null) {
      data['projectlist'] =  this.projectList.map((v) => v.toJson()).toList();
    }
		data['count'] = this.count;
		return data;
	}
}
